<?php

function add_comment($text,$user,$title)
 {
   $m_id=get_member_id($user);
   $g_id=get_game_id($title);
   
   if(check_text_isempty($text)==true)
    {
		$pin=array("status"=>statheres::EMPTY_FIELD,"value"=>null);
		return $pin;
	}
   else
    {
	 $result=insert_into_comment($g_id,$m_id,$text);
	 if($result)
      {
	    $pin=array("status"=>statheres::OLA_OK,"value"=>$sorted_result);
		return $pin; 
	  }
     else 
      {
	    $pin=array("status"=>statheres::NO_QUERY,"value"=>$sorted_result);
		return $pin;
	  }
	}
 }
//#########################################################################


function check_null($text)
 {
	if($text=="")
	 {
		return true;
	 }
	else
	 {
		return false;
	 }
 }



//#########################################################################


function show_comments($game_id, $rows)
{
$result=get_comments($game_id, $rows);
}
 
 ?>